<template>
  <div id="pay">
    <div class="pay-voucher" >
      <div class="pay-voucher-name">{{ewmInfo.organise.full_name}}保证金缴款单</div>
      <div class="pay-voucher-main">
        <div class="pay-voucher-main-info">
          <div class="list">
            <div class="list-item pr58">
              <span class="list-item-label">案件编号：</span>
              <span class="list-item-value">{{ewmInfo.bail.case_code}}</span>
            </div>
            <div>
              <span class="list-item-label">办案单位：</span>
              <span class="list-item-value">{{ewmInfo.organise.full_name}}</span>
            </div>
          </div>
          <div class="list pt16">
            <div class="list-items">
              <span class="list-item-label">嫌疑人：</span>
              <span class="list-items-value">{{ewmInfo.bail.crime_name}}</span>
            </div>
            <i class="line"></i>
            <div class="list-items">
              <span class="list-item-label">性别：</span>
              <span class="list-items-value">{{ewmInfo.bail.crime_sex == 'male'?'男':'女'}}</span>
            </div>
            <i class="line"></i>
            <div class="list-items">
              <span class="list-item-label">身份证号码：</span>
              <span class="list-items-value">{{ewmInfo.bail.crime_idcard}}</span>
            </div>
          </div>
          <div class="list pt16 btd0">
            <div class="list-items">
              <span class="list-item-label">状态：</span>
              <span class="list-items-value">待办取保缴费</span>
              <!--  <div class="pay-status">缴费后预计2-3分钟确认支付结果</div>-->
              <div class="pay-status"><el-icon><Warning /></el-icon>扫码缴费信息生效预计等待5-10分钟</div>
              <span class="tips">
                请缴费人通过手机扫码或微信扫一扫，使用相机扫码缴费。
              </span>
            </div>
          </div>
        </div>
        <div class="pay-voucher-main-qrcode">
          <div class="qrcode">
            <!-- 二维码地址 -->
            <img class="qrcodeAddress" :src="ewmUrl" alt="">
          </div>
          <div class="pay-price">
            <p class="pay-price-label">取保候审保证金</p>
            <span class="pay-price-value" data-float=""
              >{{ewmInfo.amount}}</span
            >
          </div>
        </div>
      </div>
    </div>
    <div class="copyright">
      <!--        <span>重庆市公安局南岸区分局版权所有</span>-->
    </div>
  </div>
</template>
<script setup lang="ts">
import { defineProps,onMounted } from "vue";

const props = defineProps({
  ewmInfo:{
    type: Object,
  },
  ewmUrl:{
    type: String,
  }
});

onMounted(() => {
  console.log(props.ewmInfo)
});
</script>
  <style scoped lang="scss">

#pay {
    width: 100%;
    --scale: 1;
    padding:20px;
    box-sizing: border-box;
}

.pay-voucher {
    width: calc(1083px * var(--scale));
    height: calc(456px * var(--scale));
    background-image: url(@/assets/voucherBg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
}

.pay-voucher-name {
    padding: calc(24px * var(--scale)) calc(19px * var(--scale)) calc(24px * var(--scale)) calc(20px * var(--scale));
    /* 24px 19px 24px 20px; */
    width: calc(63px * var(--scale));
    height: 100%;
    box-sizing: border-box;
    color: rgba(33, 36, 40, 0.40);
    text-align: center;
    font-size: calc(16px * var(--scale));
    font-weight: 400;
    display: flex;
    align-items: center;
    line-height: 1.5;
    justify-content: space-between;
}

.pay-voucher-main {
    padding: calc(32px * var(--scale));
    box-sizing: border-box;
    margin-left: calc(2px * var(--scale));
    width: calc(100% - 65px * var(--scale));
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.pay-voucher-main-info .list {
    width: calc(698px * var(--scale));
    border-bottom: 1px solid rgba(152, 158, 167, 0.25);
    padding-bottom: calc(24px * var(--scale));
    font-size: calc(16px * var(--scale));
    display: flex;
    align-items: center;
}

.pr58 {
    padding-right: calc(58px * var(--scale));
}

.pt16 {
    padding-top: calc(16px * var(--scale));
}

.btd0 {
    border-bottom: none !important;
}

.list .list-item-label {
    color: rgba(33, 36, 40, 0.40);
}

.list .list-item-value {
    color: rgba(33, 36, 40, 0.90);
    font-weight: 550;
}

.list .list-items {
    display: flex;
    flex-direction: column;

}

.list .list-items-value {
    color: rgba(33, 36, 40, 0.90);
    font-size: calc(24px * var(--scale));
    font-weight: 550;
    margin-top: calc(8px * var(--scale));
}

.list .line {
    width: 1px;
    margin: 0 calc(40px * var(--scale));
    height: calc(33px * var(--scale));
    background: rgba(152, 158, 167, 0.25);
}

.list .pay-status {
    width: calc(300px);
    height: calc(40px * var(--scale));
    border-radius: calc(4px * var(--scale));
    background: rgba(248, 15, 15, 0.80);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(10px * var(--scale));
}

.list .tips {
    color: #000;
    text-align: justify;
    font-size: calc(18px * var(--scale));
    margin-top: calc(38px * var(--scale));
    padding: calc(16px * var(--scale)) 0;
}

.pay-voucher-main-qrcode {
    padding-left: calc(32px * var(--scale));
    box-sizing: border-box;
}

.pay-voucher-main-qrcode .qrcode,
.qrcode .qrcodeAddress {
    width: calc(224px * var(--scale));
    height: calc(224px * var(--scale));
}

.qrcode-tips {
    color: rgba(248, 15, 15, 0.80);
    margin-top: calc(8px * var(--scale));
    font-size: calc(14px * var(--scale));
}

.pay-price {
    margin-top: calc(65px * var(--scale));
    text-align: right;
}

.pay-price-label {
    color: rgba(33, 36, 40, 0.40);
    font-size: calc(14px * var(--scale));
}

.pay-price-value {
    color: #FF3D00;
    font-size: calc(40px * var(--scale));
    font-weight: 550;

    &::before {
        content: "￥";
        color: rgba(33, 36, 40, 0.25);
        font-size: calc(24px * var(--scale));
    }
    &::after{
        content: attr(data-float);
        color: rgba(255, 61, 0, 0.30);
    }
}
.copyright {
    position: absolute;
    bottom: calc(26px * var(--scale));
    color: rgba(33, 36, 40, 0.40);
    text-align: center;
    font-size: calc(16px * var(--scale));
    z-index: 99;
    width: calc(100% - 68px * var(--scale));
}


p{
    padding:0 !important;
    margin:0 !important;
}

.home_content_box{
    display: flex;
    padding:24px;
}
.top_statistics{
    display: flex;
}
/*当前银行信息*/
.bank_ye{
    width: 400px;
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
}
.bank_ye .top{
    display: flex;
    justify-content: space-between;
    margin-bottom:9px !important;
    padding:30px 25px 0 25px;
}
.bank_ye .ye .title{
    font-size: 14px;
    color:#718EBF;
}
.bank_ye .ye .price{
    font-size: 30px;
    color: #343C6A;
    display: flex;
    align-items: center;
    margin:3px 0 21px 0 !important;
}
.bank_ye .ye .price span{
    font-size:24px;
    margin-right:4px;
}
.bank_ye .time .title{
    font-size: 12px;
    color:#718EBF;
}
.bank_ye .time .price{
    font-size: 15px;
    color: #343C6A;
}
.bank_ye .switch_box{
    display: flex;
    align-items: center;
    justify-content: right;
}
.bank_ye .switch_box .text{
    color: #343C6A;
    font-size: 13px;
    margin-right:4px !important;
}
.bank_ye .switch_box .switch{
    width: 64px;
    height: 22px;
    line-height: 22px;
    border-radius: 2px;
    background: rgba(87, 156, 255, 0.1);
    font-size: 13px;
    color: #579CFF;
    text-align: center;
}
.bank_ye .icon{
    margin-top:24px !important;
}
.bank_ye .num_box{
    height: 94px;
    border-top:1px solid #DFEAF2;
    padding:0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bank_ye .num_box .num{
    font-size: 22px;
    color: #343C6A;
}
.bank_ye .num_box .copy{
    width: 52px;
    height: 26px;
    line-height: 26px;
    border-radius: 50px;
    background: rgba(52, 60, 106, 0.05);
    text-align: center;
    font-size: 13px;
    color: #343C6A;
    cursor: pointer;
}

/*缴费总额*/
.total_price{
    width: 250px;
    background: linear-gradient(311deg, #539BFF 7%, #2D60FF 85%);
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
    margin-left:25px;
    border-radius: 8px;
    position: relative;
}
.total_price .price_box{
    padding:33px 13px 0 16px;
}
.total_price .price_box .title{
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #FFFFFF;
    margin-bottom:14px;
}
.total_price .price_box .title .label{
    width: 35px;
    height: 18px;
    line-height: 18px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    text-align: center;
}
.total_price .price{
    display: flex;
}
.total_price .price .num{
    font-size: 26px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}
.total_price .price .num span{
    font-size: 20px;
    margin-right:3px;
}
.total_price .price .hb{
    font-size: 9px;
    color: #FFC917;
    margin-left:7px;
    display: flex;
    align-items: center;
}
.total_price .price .hb img{
    margin-right:4px
}
.total_price .icon{
    position: absolute;
    bottom:0;
    left: 0;
    padding:0 9px 4px 9px !important;
}

/*入账信息*/
.rz_box{
    margin-left:25px;
}
.rz_box .top{
    width: 340px;
    height: 125px;
    border-radius: 8px;
    background: #FFFFFF;
    padding:18px 20px 8px 20px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
}
.rz_box .rz_title{
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #718EBF;
}
.rz_box .rz_title .label{
    width: 35px;
    height: 18px;
    line-height: 18px;
    border-radius: 2px;
    background: rgba(140, 187, 255, 0.1);
    font-size: 12px;
    color: #579CFF;
    text-align: center;
    margin-left: 5px !important;
}
.rz_box .price{
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 27px;
    color: #343C6A;
    margin-top:6px;
}
.rz_box .price span{
    font-size: 22px;
}
.rz_box .hb{
    font-size: 9px;
    color: #FF4A4A;
    margin-left:7px;
    display: flex;
    align-items: center;
}
.rz_box .hb img{
    margin-right:4px
}
.rz_box .dow{
    margin-top:20px;
}
.blue{
    color:#007AFF !important;
}
/*今日收款表格*/
.table_box{
    background: #fff;
    padding:0 25px;
    border-radius: 8px;
    margin-top:30px;
    padding-bottom:30px;
}
.table_box .title_box{
    padding:21px 0 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.table_box .title_box .title{
    display: flex;
    font-size: 16px;
    color: #323C4F;
    align-items: center;
    font-weight: bold;
}
.table_box .title_box .title span{
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #007AFF;
    margin-right:12px;
}
.table_box .title_box a{
    font-size: 14px;
    color: #6E789A;
}
.table_box .lanmu{
    display: flex;
    margin-bottom:21px;
}
.table_box .lanmu p{
    width: 80px;
    height: 30px;
    line-height: 30px;
    border-radius: 20px;
    border: 1px solid #007AFF;
    font-size: 14px;
    text-align: center;
    color:#007AFF;
    margin-right:10px !important;
    cursor: pointer;
}
.table_box .lanmu .on{
    background: #007AFF;
    color:#fff;
}
.table_box th{
    color: #5B6388;
    text-align: center;
}
.table_box td{
    color: #5B6388;
    text-align: center;
    height: 42px;
    line-height: 42px !important;
}
.table_box td .status{
    width: 45px;
    height: 20px;
    line-height: 20px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    margin:10px auto 0 auto !important;
}
.table_box td .on{
    background: #EDF4FF;
    color:#3A86F4;
}
.table_box td .on1{
    background: #FFEAEA;
    color:#F64040;
}
.table_box .price{
    color:#3A86F4;
}
.table_box .on_jf{
    color:#00BB1C
}
.table_box .see{
    display: inline-block;
    width: 50px;
    height: 25px;
    line-height: 25px;
    border-radius: 5px;
    background: #FFFFFF;
    border: 1px solid #3A86F4;
    color:#3A86F4;
    transition: all 0.3s;
}
.table_box .see:hover{
    background: #3A86F4;
    color:#fff;
}

/*取保金额总览*/
.zl_box .price_box{
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    padding: 30px 0 25px 0;
    margin-bottom:36px;
}
.zl_box .price_box .box1{
    margin-left:50px;
}
.zl_box .price_box .box1 .name{
    font-size: 14px;
    color: #3D3D3D;
    display: flex;
    align-items: center;
}
.bigname{
    font-size:14px !important;
}
.zl_box .price_box .box1 .name span{
    padding:0 10px;
    height: 18px;
    line-height: 18px;
    border-radius: 4px;
    background: #FFEAEB;
    font-size: 12px;
    color:#FE6470;
    margin-left:5px;
}
.zl_box .price_box .box1 .num{
    font-size: 20px;
    color: #FF6A00;
    font-weight: 500;
    margin-top:14px !important;
}
.zl_box .line{
    width: 1px;
    height: 60px;
    background: #D8D8D8;
    margin-left:56px !important;
}
.zl_box .img{
    display: flex;
    align-items: center;
    color:#666 !important;
    font-size: 16px;
}
.zl_box .img img{
    margin-right:14px;
}
/*待办提醒*/
.right_box{
    margin-left:25px;
}
.db_box{
    width: 420px;
    border-radius: 8px;
    background: #FFFFFF;
    padding:17px 5px 0 22px;
}
.db_box .title{
    font-size: 16px;
    font-weight: bold;
}
.db_box .top{
    display: flex;
    margin-top:37px;
    border-bottom:1px solid #D8D8D8;
    padding-bottom:30px;
}
.db_box .top:last-child{
    border-bottom:none;
}
.db_box .top>div{
    margin-right:60px;
}
.db_box .top>div:last-child{
    margin-right:0;
}
.db_box .top .text{
    font-size: 14px;
    font-weight: normal;
    margin-bottom:10px;
}
.db_box .top .num{
    font-size:26px;
    color:#FF6A00;
}
/*公告动态*/
.gg_box{
    width: 420px;
    border-radius: 8px;
    background: #FFFFFF;
    padding:17px 5px 24px 22px;
    margin-top:28px;
}
.gg_box .title{
    padding-bottom:20px !important;
    border-bottom:1px solid #D8D8D8;
    font-size: 16px;
    font-weight: bold;
}
.gg_box .list{
    margin-top:24px;
    display: flex;
    align-items: center;
    color:#6E789A;
    font-size: 13px;
    cursor: pointer;
}
.gg_box .list:hover{
    color:#3A86F4;
}
.gg_box .line_box{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(58, 134, 244, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right:4px;

}
.gg_box .line_box p{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3A86F4;
}
.gg_box .text{
    width: 50%;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.gg_box .name{
    margin:0 40px 0 30px !important;
}
/*取保金额统计*/
.zl_box .tj_box{
    border-radius: 5px;
    box-shadow: 2px 2px 5px 5px rgba(147, 147, 147, 0.1);
    padding:0 22px;
}
.zl_box .tj_box .title{
    font-size: 16px;
    color: #3D3D3D;
    height: 57px;
    line-height: 57px;
    font-weight: bold;
}
.zl_box .date{
    height: 27px;
    border-radius: 8px;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    color: #5F6165;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0 10px !important;
}
.zl_box .tj_box .lm_box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zl_box .tj_box .lm_box .lm{
    display: flex;
    width: 221px;
    height: 30px;
    border-radius: 20px;
    border: 1px solid #DBDBDB;
    color:#007AFF;
}
.zl_box .tj_box .lm_box .lm p{
    width: 80px;
    height: 30px;
    line-height: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
}
.zl_box .tj_box .lm_box .lm .on{
    background: #007AFF;
    color:#fff;
}
.zl_box .tj_box .lm_box .month{
    width: 75px;
    height: 27px;
    border-radius: 8px;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    color: #5F6165;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zl_box .tj_box .lm_box .month img{
    width: 15px;
    height: 15px;
    margin-left: 5px;
}
.zl_box .tj_box .text_price{
    margin-top:13px !important;
    font-size: 14px;
    color: #7D8DA6;
}

/*==========审批页面============*/
.examine_content_box{
    position: relative;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #E4E4E4;
    margin:24px;
    padding-bottom:30px;
    background: linear-gradient(to right, #F1FAFF, rgba(255,255,255,0.1));
}
.examine_content_box .top_title{
    display: flex;
    margin:56px 0 43px 48px;
}
.examine_content_box .top_title .text_box{
    margin-left:12px;
}
.examine_content_box .top_title .text_box .title{
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}
.examine_content_box .top_title img{
    width: 50px;
    height: 50px;
}
.examine_content_box .top_title .text_box .text{
    color: rgba(33,36,40,0.4);
    font-size: 14px;
    margin-top:4px !important
}
.examine_content_box .bj{
    position: absolute;
    right:0;
    top:0;
}
.examine_content_box .msg_box{
    display: inline-block;
    margin:0 48px;
    border-bottom:1px solid rgba(152,158,167,0.25);
    padding-bottom:32px;
}
.examine_content_box .msg_box .box1{
    display: inline-block;
}
.examine_content_box .msg_box .title{
    color: rgba(33,36,40,0.4);
    font-size: 16px;
    margin-bottom:12px !important;
}
.examine_content_box .msg_box .text{
    font-size: 18px;
    color: rgba(33,36,40,0.9);
    font-weight: bold;
}
.examine_content_box .msg_box .line{
    display: inline-block;
    width: 1px;
    height: 33px;
    background: rgba(152,158,167,0.25);
    margin:0 88px !important;
}
.examine_content_box .price_box{
    display: flex;
    margin-top:32px;
    justify-content: space-between;
}
.examine_content_box .price_box .price{
    color:#FF3D00;
    font-size: 40px;
    font-weight: bold;
}
.examine_content_box .price_box .price span{
    font-size: 24px;
    color: rgba(33,36,40,0.25);
}
.examine_content_box .list_box{
    margin:44px 48px 0 48px;
    height: 160px;
    position: relative;
}
.examine_content_box .list{
    display: inline-block;
    margin-right:100px;
}
.examine_content_box .list:last-child{
    margin-right:0;
}
.examine_content_box .list .top{
    display: flex;
    align-items: center;
}
.examine_content_box .list .top .num{
    font-size: 50px;
    background: -webkit-linear-gradient(#ACBAC5, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin-right:7px !important;
}
.examine_content_box .list .top .text{
    color: rgba(33,36,40,0.4);
    font-size: 14px;
}
.examine_content_box .list .top .title{
    font-size: 18px;
    color: rgba(33,36,40,0.9);
    margin-top:4px !important;
    font-weight: bold;
}
.examine_content_box .list .line_box{
    display: flex;
    align-items: center;
    margin-left:14px;
    margin-top:10px;
}
.examine_content_box .list .line_box .quan{
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0F88F8 0%, rgba(15,136,248,0) 100%);
    border-radius: 50%;
    margin-right:4px !important;
}
.examine_content_box .list .line_box .line{
    width: 171px;
    height: 4px;
    background: linear-gradient(90deg, #0F88F8 0%, rgba(15,136,248,0) 100%);
}
.examine_content_box .list .status{
    margin-top:12px;
    color:#212428;
    font-size:16px;
    position: absolute;
    bottom:0;
}
.examine_content_box .list .status .label{
    display: block;
    width: 52px;
    height: 26px;
    line-height: 26px;
    background: linear-gradient(to right, #4ECC85, #3BA962);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-top:3px !important;
    text-align: center;
    color:#fff;
    font-size: 14px;
}
</style>
  